package xyz.bernkastel.goods_in_great_demand.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xyz.bernkastel.goods_in_great_demand.dto.GoodsDto;
import xyz.bernkastel.goods_in_great_demand.entity.Goods;


public interface GoodsService extends IService<Goods> {
    //新增商品的同时插入对应的标签
    public void saveWithTag(GoodsDto goodsDto);

    //根据id查询商品及其标签
    public GoodsDto getByIdWithTag(Long id);

    //更新商品及其标签
    public void updateWithTag(GoodsDto goodsDto);
}
